﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Game_Engine
{
    public class Label : GUIElement
    {
        //The label does not update--Is not interactive--flat, colored thing
        public Label()
        { }

        public Label(Texture2D texture, Rectangle rectangle, String text, Color background, Color textColor)
        {
            Texture = texture;
            BackgroundColor = background;
            Bounds = rectangle;
            Text = text;
            TextColor = textColor;
            Selected = true;
        }

        public override void Update()
        { }

        public override void Draw(SpriteBatch spriteBatch, SpriteFont font)
        {
            base.Draw(spriteBatch, font);
            spriteBatch.DrawString(font, Text, new Vector2(Bounds.X, Bounds.Y), TextColor);
            
        }
    }
}
